{#- for new tables #}
{% for table in newTables %}
{% include "sql-upgrade-new-table.njk" %}
{% endfor %}

{#- for changes in existing tables #}
{% for table in diffTables %}
{% include "sql-upgrade-table.njk" %}
{% endfor %}

{#- for new tables.foreignKeys #}
{% for table in newTables %}
{% include "sql-upgrade-table-fk.njk" %}
{% endfor %}

{#- for new foreignKeys #}
{% for table in diffTables %}
{% include "sql-upgrade-table-fk.njk" %}
{% endfor %}